'use strict';

const Service = require('egg').Service;

class WebProcessService extends Service {
  async list() {
    const { LogWebProcess } = this.ctx.model;
    return await LogWebProcess.listData(this.ctx.query);
  }

  async count() {
    const { LogWebProcess } = this.ctx.model;
    return await LogWebProcess.getCount(this.ctx.query);
  }

  async destroy() {
    const { LogWebProcess } = this.ctx.model;
    return LogWebProcess.removeModel(this.ctx.params.id);
  }
}

module.exports = WebProcessService;
